<?php
	if(is_array($_POST['payment_id'])) {
		$payment_id = $_POST['payment_id'];
		$sql = "UPDATE `tbl_payment` SET `status` = '2' WHERE `payment_id` IN (". implode (',',$payment_id) .")";
	} else { 
		$payment_id = $params[0]; 
		$sql = "UPDATE `tbl_payment` SET `status` = '2' WHERE `payment_id` = '$payment_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>